package models;

import play.*;
import play.data.validation.MaxSize;
import play.data.validation.Range;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;

import java.util.*;

/**
 * 文章
 * @author justin
 *
 */
@Entity
public class Article extends BaseEntity {

	@Required
	@MaxSize(value=20)
	public String title;/*文章标题*/
	
	@Lob
	public String content;/*文章内容*/
}
